package com.snailframework.gateway;

import com.snailframework.gateway.route.LoadBalanceConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author: zgadmin(zhangge)
 * @Date: 2023/2/20 下午2:51
 * @Version: 1.0.0
 */
@EnableAsync
@EnableDiscoveryClient
@SpringBootApplication
@LoadBalancerClients(defaultConfiguration = LoadBalanceConfig.class)
public class GatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
    }

}